package com.saihai.jiankang.hrmcitytwo.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.saihai.jiankang.hrmcitytwo.mapper.HrmcitytwoMapper;
import com.saihai.jiankang.hrmcitytwo.domain.Hrmcitytwo;
import com.saihai.jiankang.hrmcitytwo.service.IHrmcitytwoService;

/**
 * 区县Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-07-12
 */
@Service
public class HrmcitytwoServiceImpl implements IHrmcitytwoService 
{
    @Autowired
    private HrmcitytwoMapper hrmcitytwoMapper;

    /**
     * 查询区县
     * 
     * @param id 区县主键
     * @return 区县
     */
    @Override
    public Hrmcitytwo selectHrmcitytwoById(Long id)
    {
        return hrmcitytwoMapper.selectHrmcitytwoById(id);
    }

    /**
     * 查询区县列表
     * 
     * @param hrmcitytwo 区县
     * @return 区县
     */
    @Override
    public List<Hrmcitytwo> selectHrmcitytwoList(Hrmcitytwo hrmcitytwo)
    {
        return hrmcitytwoMapper.selectHrmcitytwoList(hrmcitytwo);
    }

    /**
     * 新增区县
     * 
     * @param hrmcitytwo 区县
     * @return 结果
     */
    @Override
    public int insertHrmcitytwo(Hrmcitytwo hrmcitytwo)
    {
        return hrmcitytwoMapper.insertHrmcitytwo(hrmcitytwo);
    }

    /**
     * 修改区县
     * 
     * @param hrmcitytwo 区县
     * @return 结果
     */
    @Override
    public int updateHrmcitytwo(Hrmcitytwo hrmcitytwo)
    {
        return hrmcitytwoMapper.updateHrmcitytwo(hrmcitytwo);
    }

    /**
     * 批量删除区县
     * 
     * @param ids 需要删除的区县主键
     * @return 结果
     */
    @Override
    public int deleteHrmcitytwoByIds(Long[] ids)
    {
        return hrmcitytwoMapper.deleteHrmcitytwoByIds(ids);
    }

    /**
     * 删除区县信息
     * 
     * @param id 区县主键
     * @return 结果
     */
    @Override
    public int deleteHrmcitytwoById(Long id)
    {
        return hrmcitytwoMapper.deleteHrmcitytwoById(id);
    }
}
